package cn.com.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_resource;
import cn.com.api.mapper.ApiU_resourceMapper;
import cn.com.api.service.ApiU_resourceService;
import cn.com.api.service.impl.base.U_resourceServiceImplBase;

/**
 * 
 **/
@Service
public class ApiU_resourceServiceImpl extends U_resourceServiceImplBase implements ApiU_resourceService{
	@Autowired
	private ApiU_resourceMapper apiU_resourceMapper;
    
	
     	//新增对象后返回记录ID
    public int U_resourceInsertion(ApiU_resource u_resource){
        return this.apiU_resourceMapper.U_resourceInsertion(u_resource);
    }


	@Override
	public List<ApiU_resource> findU_resourcesByCondition(Map<String, Object> param) {
		return this.apiU_resourceMapper.findU_resourcesByCondition(param);
	}


	@Override
	public int insertU_resource_info(ApiU_resource u_resource) {
		
		int ret_I= apiU_resourceMapper.insertU_resource_info(u_resource);
		return ret_I;
		
	}
	

	@Override
	public int updateU_resource_info(ApiU_resource u_resource) {

		int ret_I= apiU_resourceMapper.updateU_resource_info(u_resource);
		return ret_I;
	}


	@Override
	public List<ApiU_resource> findU_resources_type(Map<String, Object> param)
			throws Exception {
		// TODO Auto-generated method stub
		return apiU_resourceMapper.findU_resources_type(param);
	}


 
}


